<%@ Page Title="" Language="C#" MasterPageFile="~/Views/Shared/Main.Master" Inherits="System.Web.Mvc.ViewPage" %>

<asp:Content ID="Content1" ContentPlaceHolderID="MainContent" runat="server">
<div class="mainContent">
<h2>Invite friends and contacts from the following networks</h2>
<div class="pad4 ac m4"><a href="#" onclick="contacts_facebook();return false;">
<img src="/Content/images/facebook.png" alt="facebook" /></a>
<a href="#" onclick="contacts_gmail();return false;">
<img src="/Content/images/gmail.gif" alt="gmail" /></a>
</div>
<div id="contacts_result"></div>
</div>
<script type="text/javascript">
    /// <reference path="jquery-1.3.2-vsdoc.js" />
    function contacts_facebook() { 
    
    }

    function contacts_gmail() {
        showLoader('contacts_result');
        jQuery.get('/contacts/gmail', null, function(data, textStatus) {
            $('#contacts_result').html(data);
        });


    }

    $(document).ready(function() {
        if (querySt('approved') != undefined) {
            switch (querySt('approved')) {
                case 'gmail':
                    contacts_gmail();
                    break;
                case 'facebook':
                    contacts_facebook();
                    break;
                default:
                    break;
            }
        }

    });
</script>
</asp:Content>

<asp:Content ID="Content2" ContentPlaceHolderID="head" runat="server">
</asp:Content>
